﻿using System;

public partial class EmailAccount
{
    private string displayName;
    private string email;
    private int emailAccountId;
    private bool enableSSL;
    private string host;
    private int port;
    private string pPassword;
    private bool useDefaultCredentials;
    private string username;

    public string DisplayName
    {
        get
        {
            return this.displayName;
        }
        set
        {
            this.displayName = value;
        }
    }

    public string Email
    {
        get
        {
            return this.email;
        }
        set
        {
            this.email = value;
        }
    }

    public int EmailAccountId
    {
        get
        {
            return this.emailAccountId;
        }
        set
        {
            this.emailAccountId = value;
        }
    }

    public bool EnableSSL
    {
        get
        {
            return this.enableSSL;
        }
        set
        {
            this.enableSSL = value;
        }
    }

    public string FriendlyName
    {
        get
        {
            if (!string.IsNullOrEmpty(this.displayName))
            {
                return (this.email + " (" + this.displayName + ")");
            }
            return this.email;
        }
    }

    public string Host
    {
        get
        {
            return this.host;
        }
        set
        {
            this.host = value;
        }
    }

    public string Password
    {
        get
        {
            return this.pPassword;
        }
        set
        {
            this.pPassword = value;
        }
    }

    public int Port
    {
        get
        {
            return this.port;
        }
        set
        {
            this.port = value;
        }
    }

    public bool UseDefaultCredentials
    {
        get
        {
            return this.useDefaultCredentials;
        }
        set
        {
            this.useDefaultCredentials = value;
        }
    }

    public string Username
    {
        get
        {
            return this.username;
        }
        set
        {
            this.username = value;
        }
    }
}

